package com.shrct.businessprocess.project;

import com.shrct.businessprocess.project.RCProjectSaleAssignmentNormalCriteriaSummaryData;
import edu.fudan.mylang.pf.query.BaseStatCriteria;
import java.util.Collection;

public class RCProjectSaleAssignmentNormalCriteriaSummary extends BaseStatCriteria<RCProjectSaleAssignmentNormalCriteriaSummaryData> {
  public void initOrderBys() {
    
  }
  
  public Collection<RCProjectSaleAssignmentNormalCriteriaSummaryData> list() {
    criteria.postInitialize();
    initOrderBys();
    String aggrCriteria = " select new com.shrct.businessprocess.project.RCProjectSaleAssignmentNormalCriteriaSummaryData(sum(stat.summaryInfo.contractAmount * this.rate / 100),sum(stat.summaryInfo.contractProfit * this.rate / 100),sum(stat.summaryInfo.invoiceAmount * this.rate / 100),sum(stat.summaryInfo.totalCost * this.rate / 100),sum(stat.summaryInfo.contractProfitAdj4Sale * this.rate / 100),sum(stat.summaryInfo.ggp * this.rate / 100),sum(stat.summaryInfo.cggp * this.rate / 100))"
    		+ criteria.getHQLFrom() + " " + criteria.getHQLBodyWithActiveCondition();
    org.hibernate.Query query = entities.createQuery(aggrCriteria);
    criteria.fillParameters(query);
    return doList(query);
    
  }
}
